package comments

import (
	"github.com/gin-gonic/gin"
	. "savor_gin/controllers/comment"
)

func CommentLoad(g *gin.Engine) {
	g.DELETE("/comment", DeleteComment)
	g.POST("/comment", AddComment)
	g.PUT("/comment/:commentId", UpdateCommentInfo)
	g.GET("/comment", GetCommentById)
	g.GET("/comment/:userId", GetCommentListByUserId)
	g.GET("/comment/byrecipeId", GetCommentByRecipeId)
}
